<template>
  <div>
    <h1>SlotC</h1>
    <!-- <slot name="giveMsg"></slot> -->
    <!-- <slot></slot> -->
    <!-- 如果子组件标签中无slot属性，会显示默认值  -->
    <!-- <slot name="houbang">houbang</slot> -->
    <slot name="laoxi" :jiali="jiali"></slot>
    <slot name="testSlot"></slot>
  </div>
</template>

<script>
export default {
  data() {
    return {
      jiali: ["侯妃", "牛", "赵飞"]
    };
  }
};
</script>

<style></style>
